﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MBS.UserControls.PaymentUserControl;

namespace MBS
{
    public partial class Booking : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AddBookingUserControl1.Result.ToString();
            }
            AddBookingUserControl1.BookingAddComplete += new AddBookingUserControl.BookingAddHandler(AddBookingUserControl1_BookingAddComplete);
            AddBookingUserControl1.BookingAddFailed +=new AddBookingUserControl.BookingAddHandler(AddBookingUserControl1_BookingAddFailed);
        }
        public void AddBookingUserControl1_BookingAddComplete()
        {
            string strComplete = "Booking Completed";
            ClientScript.RegisterStartupScript(this.GetType(),"alert","javascript:showAlert('"+strComplete+"')",true);
        }
        public void AddBookingUserControl1_BookingAddFailed()
        {
            string strFailed = "Booking Failed";
            ClientScript.RegisterStartupScript(this.GetType(),"alert1","javascript:showAlert('"+strFailed+"')",true);
        }

       }
}